.input-checkbox-ios {
    appearance: none;
    position: relative;
    width: 41px;
    height: 24px;
    border: 1px solid #dfdfdf;
    outline: 0;
    border-radius: 16px;
    box-sizing: border-box;
    background: #dfdfdf;
    &:checked {
        border-color: $bg;
        background-color: $bg;
        &:before {
            transform: scale(0);
        }
        &:after {
            transform: translateX(17px);
        }
    }
    &:before,
    &:after {
        content: " ";
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 15px;
        transition: transform .3s,
    }
    &:before {
        width: 39px;
        height: 22px;
        background-color: #fdfdfd;
    }
    &:after {
        width: 22px;
        height: 22px;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
}
